<?php
namespace Amis\dataviewer;

use Amis\Basics\AmisBasics;

class Markdown extends AmisBasics
{
    public string $type = 'list';

    /**
     * 名称
     * @param string $name
     * @return $this
     */
    public function name(string $name)
    {
        $this->name = $name;
        return $this;
    }

    /**
     * 静态值
     * @param string $value
     * @return $this
     */
    public function value(string $value)
    {
        $this->value = $value;
        return $this;
    }

    /**
     * 外部地址
     * @param string $src
     * @return $this
     */
    public function src(string $src)
    {
        $this->src = $src;
        return $this;
    }

    public function className(string $className)
    {
        $this->className = $className;
        return $this;
    }

    /**
     * 配置项
     * @param array $options
     * @return $this
     */
    public function options(array $options)
    {
        $this->options = $options;
        return $this;
    }
}